package service.impl;

import java.sql.Connection;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import pojo.Customer;
import service.CustomerManager;

public class CustomerManagerImplMock implements CustomerManager {
	private List<Customer> list=new ArrayList<Customer>();
	public CustomerManagerImplMock() {
		Customer c=new Customer(null, "tom", 345.67, true, new Date(), new String[]{"basket","football"});
		list.add(c);
	}
	@Override
	public int addCustomer(Customer c,Connection conn) {
		list.add(c);
		return 1;
	}

	@Override
	public List<Customer> findAllCustomers(Connection conn) {
		// TODO Auto-generated method stub
		return list;
	}
	@Override
	public int deleteCustomer(String cname,Connection conn) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public int updateCustomer(Customer c,Connection conn,int id) {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public String findFavs(String cname, Connection conn) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Customer findOne(String cname, Connection conn) {
		// TODO Auto-generated method stub
		return null;
	}

}
